package website.haicheng.cloudauth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import website.haicheng.core.base.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * @description:
 * @author: 582895699@qq.com
 * @time: 2021/2/10 下午 03:08
 */
@Getter
@Setter
@ApiModel(description = "用户获取Token")
public class LoginDto extends BaseEntity {
    private static final long serialVersionUID = -2056809832670650298L;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不可为空")
    private String account;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不可为空")
    private String password;
}
